// 社保
import Layout from '@/layout'

// layout-第一层!!  组件位于layout的二级路由里面
export default {
  path: '/social_securitys',
  component: Layout,
  name: 'social_securitys',
    children:[
        {
        path:'',  //什么都不写,默认是二级路由直接看component默认的index.vue
        component: () => import('@/views/social'),
        name: 'social_securitys',
         // 路由元信息  存储数据的对象信息
         meta:{
            title:'社保管理',  //左侧菜单名称
            icon:'社保1'  //左侧图标
         }
    },
    // 报表
    {
        path: 'detail/:id',
        hidden: true,
        component: () => import('@/views/social/detail'),
        name: 'socialDetail',
        meta: {
          title: '社保'
        }
      },
      // 历史归档
      {
        path: 'historicalArchiving',
        hidden: true,
        component: () => import('@/views/social/historical'),
        name: 'socialHistorical',
        meta: {
          title: '历史归档'
        }
      },
      // 月报表
      {
        path: 'monthStatement',
        component: () => import('@/views/social/month'),
        name: 'socialMonthStatement',
        hidden: true,
        meta: {
          title: '当月报表'
        }
      }
]
}